package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ConvertsAnArrayOfTypeIntIntoAnArrayOfTypeByte {
	public static void main(String[] argv) {
		int[] in = new int[]{34, 35, 36, 37, 37, 37, 67, 68, 69};
		System.out.println(java.util.Arrays.toString(convertIntArray(in)));
	}

	public static byte[] convertIntArray(int[] in) {
		byte[] out = new byte[in.length];
		for (int i = 0; i < in.length; i++) {
			out[i] = (byte) in[i];
		}
		return out;
	}
}
